package com.maiji.cloud.response.community;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@NoArgsConstructor
@Data
@Accessors(chain=true)

@ApiModel("ComUserMsgCountOutPutDto")
public class ComUserMsgCountOutPutDto {

    @ApiModelProperty("userId")
    private String userId;

    @ApiModelProperty("未浏览评论数量")
    private Integer commentCount; //未浏览评论数量

    @ApiModelProperty("/未浏览@数量")
    private Integer atCount; //未浏览@数量

    @ApiModelProperty("未浏览点赞数量")
    private Integer praiseCount; //未浏览点赞数量

    @ApiModelProperty("未浏览粉丝数量")
    private Integer followerCount; //未浏览粉丝数量

    @ApiModelProperty("未浏览回复数量")
    private Integer replyCount; //未浏览回复数量

    @ApiModelProperty("未浏览评论的评论数量")
    private Integer comCommentCount;

    @ApiModelProperty("所有未浏览数量")
    private Integer allCount;//所有未浏览数量

    public Integer getAllCount() {
        return (commentCount == null ? 0 : commentCount) + (atCount == null ? 0 : atCount)+ (praiseCount == null ? 0 : praiseCount) + (followerCount == null ? 0 : followerCount) + (replyCount == null ? 0 : replyCount);
    }

}
